-- GENERATED SPELL FOR [Injured Warsong Warrior] --


function spell0_27106(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(39047,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27106', 531, 1)
end

function spell1_27106(pUnit, Event) --@Heroic Strike,n/a--
pUnit:FullCastSpellOnTarget(45026,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27106', 630, 1)
end

function spell2_27106(pUnit, Event) --@Soldier Rescued,n/a--
pUnit:FullCastSpellOnTarget(47968,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27106', 564, 1)
end

function spell3_27106(pUnit, Event) --@Warlord\'s Bulwark,n/a--
pUnit:FullCastSpellOnTarget(47975,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_27106', 583, 1)
end

function Sorts_27106(pUnit, Event)
local choix_sorts_27106 = math.random(0, 3)
if choix_sorts_27106 == 0 then
pUnit:RegisterEvent('spell0_27106', 1, 1)
end
if choix_sorts_27106 == 1 then
pUnit:RegisterEvent('spell1_27106', 1, 1)
end
if choix_sorts_27106 == 2 then
pUnit:RegisterEvent('spell2_27106', 1, 1)
end
if choix_sorts_27106 == 3 then
pUnit:RegisterEvent('spell3_27106', 1, 1)
end
end

function mob27106_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_27106', math.random(1500, 3000), 1)
end

function mob27106_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27106_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob27106_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(27106, 1, 'mob27106_Action')
RegisterUnitEvent(27106, 2, 'mob27106_Leave')
RegisterUnitEvent(27106, 3, 'mob27106_Kill')
RegisterUnitEvent(27106, 4, 'mob27106_Die')
